//
//  AbountView.m
//  SmileWeather
//
//  Created by lanou3g on 15/10/5.
//  Copyright (c) 2015年 Èô∂Â§©Êµ∑. All rights reserved.
//

#import "AbountView.h"

@implementation AbountView
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 64, kWidth, kHeight/3)];
        _imageView.image = [UIImage imageNamed:@"abount.jpg"];
        [self addSubview:_imageView];
        
        _titleL = [[UILabel alloc] initWithFrame:CGRectMake(20, _imageView.frame.size.height + 84, kWidth - 40, 30)];
        _titleL.text = @"关于我们";
        _titleL.font = [UIFont boldSystemFontOfSize:17];
        _titleL.textColor = [UIColor blackColor];
        [self addSubview:_titleL];
        
        _contentL = [[UILabel alloc] initWithFrame:CGRectMake(20, _titleL.frame.origin.y + 30, kWidth- 40, 300)];
        _contentL.text = @"       我曾为时光匆匆流逝而遗憾,曾为生命如此短暂而感伤,曾为花草树木的调残而惆怅,我有一颗细腻、敏感的心.\n       思想上,具备比较缜密的逻辑思维.个清冷清,不屑解释,一向是公认的独立、自强,面对质疑和要求,会因为害怕麻烦而冷冷对之,这也难免给人留下清冷孤傲的印象.但其实骨子里我是个温柔细腻的,只是极少人能见到我的温柔.我待人亲切温暖偶尔有点风趣,但是真正的温柔,从不轻易示人,正因为不轻易看到,才足够的珍贵,不是矫情,也不是造作,因为明白,自重自爱者,方能得到全心的珍爱.\n       所以我常常说:“知我者,谓我心忧;不知我者,谓我何求.这就是我,行走在天气和生活边缘,时刻关心呵护关注我的人,崇尚真实,冷清却深情的我,这样的我相信唯有真正的接受和包容,才是真正一生一世的承诺,时间会老去,千金也终会散去,唯有心灵之恋生生不息.";
        _contentL.numberOfLines = 0;
        _contentL.lineBreakMode = 0;
        [self addSubview:_contentL];
        
        CGRect frame2 = [_contentL.text boundingRectWithSize:CGSizeMake(kWidth - 40, 10000) options:NSStringDrawingUsesLineFragmentOrigin attributes:[NSDictionary dictionaryWithObject:[UIFont systemFontOfSize:15] forKey:NSFontAttributeName] context:nil];
        _contentL.font = [UIFont systemFontOfSize:15];
        _contentL.frame = CGRectMake(20, _titleL.frame.origin.y + 30, kWidth- 40, frame2.size.height);
    }
    return self;
}
@end
